b33bf5ca1871144c3d94eb2707166e18edce542e
[openwrt/openwrt.git] /
1 From: Alexander Wetzel <Alexander@wetzel-home.de>
2 Date: Thu, 17 Jul 2025 18:25:47 +0200
3 Subject: [PATCH] wifi: mac80211: Don't call fq_flow_idx() for management
4 frames
5
6 skb_get_hash() can only be used when the skb is linked to a netdev
7 device.
8
9 Signed-off-by: Alexander Wetzel <Alexander@wetzel-home.de>
10 Fixes: 73bc9e0af594 ("mac80211: don't apply flow control on management frames")
11 Link: https://patch.msgid.link/20250717162547.94582-3-Alexander@wetzel-home.de
12 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
13 ---
14
15 --- a/net/mac80211/tx.c
16 +++ b/net/mac80211/tx.c
17 @@ -1428,7 +1428,7 @@ static void ieee80211_txq_enqueue(struct
18 {
19 struct fq *fq = &local->fq;
20 struct fq_tin *tin = &txqi->tin;
21 - u32 flow_idx = fq_flow_idx(fq, skb);
22 + u32 flow_idx;
23
24 ieee80211_set_skb_enqueue_time(skb);
25
26 @@ -1444,6 +1444,7 @@ static void ieee80211_txq_enqueue(struct
27 IEEE80211_TX_INTCFL_NEED_TXPROCESSING;
28 __skb_queue_tail(&txqi->frags, skb);
29 } else {
30 + flow_idx = fq_flow_idx(fq, skb);
31 fq_tin_enqueue(fq, tin, flow_idx, skb,
32 fq_skb_free_func);
33 }